package com.thread;

public class PriorityDemo2 {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        Thread t1 = new Thread(() -> {
            for (int i = 0; i < 10000; i++) {
                System.out.println("max");
            }
        });
        t1.setPriority(Thread.MAX_PRIORITY);
        t1.start();

        long end = System.currentTimeMillis();
        System.out.println("t1执行时间：" + (end - start)+"ms");
    }
}
